package CustomIRule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MySpringCloud
 *
 * @Title: CustomIRule
 * @Date: 2020/5/24 5:52
 * @Author: wfg
 * @Description:
 * @Version:
 */
@Configuration
public class CustomPowerIRule {

    @Bean
    public IRule iRule(){
        return new RandomRule();
    }
}
